Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Asset Loop out #872

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

sputn1ck
Copy link
Member

@sputn1ck sputn1ck commented Jan 9, 2025

This PR adds a simple asset loop out. Clients are able to specify a asset_id during the normal loop out operation. If an asset is provided, the loop client will try to pay the swap invoice with the connected taproot-assets daemon.

@sputn1ck sputn1ck requested a review from bhandras January 9, 2025 15:57
@sputn1ck sputn1ck force-pushed the asset_simple_loopout branch from 5e35488 to fd87cb9 Compare January 9, 2025 16:08
@dstadulis
Copy link
Contributor

dstadulis commented Jan 9, 2025

able to specify a asset_id during the normal loop out operation

ultimate deliverable for asset specification will need to be specification by group_key, rather that asset_id only

*lndclient.PaymentStatus, error) {

// If we want to use an asset for the payment, we need to use the asset
// client.
if useAsset {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could just check if assetID is not nil here.

@sputn1ck sputn1ck force-pushed the asset_simple_loopout branch from fd87cb9 to af8256f Compare January 10, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants